-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add errors object back to menu item, remove unused isPolicy #12460
Conversation
|
Also repeated the testing steps from #12117 to verify that this PR doesn't break it, and it works fine: |
Removing @Santhosh-Sellavel because the only way I know how to test this involves changing API layer code |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM and tests well! Thanks for the fix!
|
Tested well! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm too!
@luacmartins looks like this was merged without the Run e2e performance regression tests test passing. Please add a note explaining why this was done and remove the |
Tests passed. Removing |
Add errors object back to menu item, remove unused isPolicy (cherry picked from commit e275d4f)
…-12460 🍒 Cherry pick PR #12460 to staging 🍒
🚀 Cherry-picked to staging by @luacmartins in version: 1.2.23-8 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
We had a discussion on this to only show the error message on the policy details page.(https://expensify.slack.com/archives/C01GTK53T8Q/p1666955764560879) |
Cool, thanks @Justicea83 -- checking this one off. |
🚀 Deployed to production by @Julesssss in version: 1.2.23-9 🚀
|
🚀 Cherry-picked to staging by https://github.com/AndrewGable in version: 1.3.28-2 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Deployed to production by https://github.com/AndrewGable in version: 1.3.28-5 🚀
|
Details
I'm not sure why this key was removed, I'm not sure it was done intentionally, cc @Justicea83
Also, I removed the unused
isPolicy
field. Its only usage was removed here. You can confirm by running the following from theApp
directoryag 'isPolicy(?!ExpenseChat)'
That just finds all the occurrences of
isPolicy
not followed byExpenseChat
, and you can see there's only one such occurrence and it's unrelated:Fixed Issues
$ #12452
Tests
Go to here, comment out the function contents and replace it with:
Sign into an account on NewDot and make a workspace.
Go offline.
Go to
Settings
->Workspaces
-><your_workspace>
->...
->Delete Workspace
to delete the workspace.Verify that the workspace now appears with strikethrough. On web and desktop, hovering over the deleted workspace, your mouse style should change to disabled. On all platforms you should no longer be able to click into the workspace.
Go back to the home page.
Come back online.
Verify that there is a red dot over the settings menu icon.
Open the settings page.
Verify that there is a red dot over the Workspaces menu item
Click on the Workspaces menu item
Verify that there is a red dot over your individual workspace, and that there is an error message with an
x
next to it displaying beneath it.Click on the
x
to dismiss the error message.Verify that you can now click into the workspace again.
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
filesWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)PR Reviewer Checklist
The reviewer will copy/paste it into a new comment and complete it after the author checklist is completed
### Fixed Issues
section aboveTests
sectionQA steps
sectiontoggleReport
and notonIconClick
).src/languages/*
filesWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
have been tested & I retested again)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Screenshots
Web